<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@taglib uri="http://www.goodfox.com/jsp/tags/power" prefix="p"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<script type="text/javascript">
</script>
<div class="pageContent" style="border-left: 1px solid #B8D0D6;border-right: 1px solid #B8D0D6;">
	<div class="panelBar">
		<ul class="toolBar">
			<li><span><spring:message code="search.lnkGoDetail"/>${role.roleName}</span></li>
			<li class="line">line</li>
			<c:if test="${p:isPower('/role/goRoleModify.shtml',sessionScope.loginAccount)}">
			<li><a class="edit" href="<c:url value="/role/goRoleModify.shtml"/>?roleId=${role.roleId}" target="navTab" rel="roleShowPage"><span><spring:message code="search.btnGoModify"/></span></a></li>
			</c:if>
			<c:if test="${p:isPower('/role/roleRemove.shtml',sessionScope.loginAccount)}">
			<li><a class="delete" href="<c:url value="/role/roleRemove.shtml"/>?roleId=${role.roleId}" target="ajax" rel="menuId_30"><span><spring:message code="search.btnRemove"/></span></a></li>
			</c:if>
		</ul>
	</div>
	<table class="tableForm" cellpadding="0" cellspacing="1" width="100%" align="center">          
        <tbody>
            <tr>
                <td>角色名称：</td>
                <td>${role.roleName}</td>
                <td>适用范围：</td>
                <td>${role.scopeName}</td>
            </tr>
            <tr>
				<td>系统功能：</td>
            	<td colspan="3">
	          		<table width="100%">
	        			<tbody>
				        	<c:forEach items="${funSet}" var="fun">
				           	<tr>
				            	<td>${fun.funName}</td>
				           	</tr>
				           	<c:forEach items="${fun.realSubFunSet}" var="subFun">
				           	<tr>
		                   		<td style="padding-left:25px;">${subFun.funName}
		                       	<c:if test="${subFun.realSubCount>0}">
		                       	[<c:forEach items="${subFun.realSubFunSet}" var="sonFun">&nbsp;${sonFun.funName}&nbsp;</c:forEach>]
		                       	</c:if>
		                    	</td>
				            </tr>
				           	</c:forEach>
				        	</c:forEach>
				    	</tbody>
					</table>
		    	</td>
           	</tr>
        </tbody>
    </table>
</div>